package Rainwater.Service.impl;

import Rainwater.Service.AnalysisService;
import Rainwater.baen.vo.AnalysisCreateVo;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author cfy
 * @date 2024/10/22
 **/
@Service
public class AnalysisServiceImpl implements AnalysisService {
    @Override
    public String[] userFig() {
        String[] str = {"40","100"};
        return str;
    }

    @Override
    public Map<String, Integer> pointFig() {
        Map<String,Integer> map = new HashMap<>();
        map.put("山西",20);
        map.put("陕西",10);
        map.put("河南",30);
        map.put("山东",15);
        return map;
    }

    @Override
    public Map<String, Integer> TemFig() {
        Map<String,Integer> map = new HashMap<>();
        map.put("山西",20);
        map.put("陕西",10);
        map.put("河南",30);
        map.put("山东",15);
        return map;
    }

    @Override
    public Map<String, Integer> airFig() {
        Map<String,Integer> map = new HashMap<>();
        map.put("山西",20);
        map.put("陕西",10);
        map.put("河南",30);
        map.put("山东",15);
        return map;
    }

    @Override
    public Map<String, Integer> windFig() {
        Map<String,Integer> map = new HashMap<>();
        map.put("山西",10);
        map.put("陕西",30);
        map.put("河南",20);
        map.put("山东",25);
        return map;
    }

    @Override
    public Map<String, Integer> waterFig(AnalysisCreateVo createVo) {
        //todo
        System.out.println(createVo);
        Map<String,Integer> map = new HashMap<>();
        map.put("山西",10);
        map.put("陕西",30);
        map.put("河南",20);
        map.put("山东",25);
        return map;
    }
}
